import javax.swing.*;
import java.awt.*;

public class Example1 extends JFrame {
   public void CreateJframe(String title){
       JFrame jf = new Jframe(title);
       Container container = jf.getContentPane();
      Jlabel jl = new JLabel("这是一个JFrame窗体");

   }
  public static void main(String[] args) {
      new Example1().CreateJframe("创建一个JFrame窗体");
  }
}
